package main

import (
	"fmt"
	"secondbuy/RabbitMQ"
	"strconv"
	"time"
)

func main()  {
	rabbitmq1 := RabbitMQ.NewRabbitMQRouting("exImooc","imooc_one")
	rabbitmq2 := RabbitMQ.NewRabbitMQRouting("exImooc","imooc_two")
	for i:=0;i<=10;i++{
		rabbitmq1.PublishRouting("hello imooc one!"+strconv.Itoa(i))
		rabbitmq2.PublishRouting("hello imooc two"+strconv.Itoa(i))
		time.Sleep(time.Second)
		fmt.Println(i)
	}
}
